<?php

/**
 *
 * User: chenjunliang@star-net.cn
 * Time: 2017/10/30 10:03
 */
namespace app\console\swooletask\task\inventory;
class InitScheduleTask {
    /**
     * swoole task执行触发入口
     * @param $serv
     * @param $data
     */
    public function index($serv,$data) {

        $serv->task([
            'class'  => '\app\console\swooletask\logic\InitSchedule',
            'action' => 'initScheduleRemain',
            'datas'  => $data
        ]);
    }
}